#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTabWidget>
#include "../Page1/Page1.h"
#include <QStackedWidget>
#include <QJsonParseError>
#include <QJsonObject>
#include <QJsonArray>

#include <QHBoxLayout>
#include <QGridLayout>
#include <QVBoxLayout>



#include <QFile>
#include <QDebug>
#include <QButtonGroup>
#include <QPushButton>
#include <QToolButton>


#include "../CustomControlPage/CustomControlPage.h"
#include "../DataShowPage/DataShowPage.h"


QT_BEGIN_NAMESPACE
namespace Ui {
class Widget;
}
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    void OnBtnGroupClicked(int id);

private:
    void initMain();
    void InitLeftMune();
    void loadJsonConfig(const QString &filePath, QJsonDocument  &jsdocResult);

private:
    Ui::Widget *ui;
    //QTabWidget *m_tabWidget;
    //Page1 *m_page1;
    //Page2Interface *page2;
    QStackedWidget * m_stackedWidget;
    QButtonGroup *m_btnGroup;
    DataShowPageWidget * m_DataShowPageWidget;
    CustomControlPageWidget * m_CustomControlPageWidget;

    QWidget * m_leftWdiget;
    QWidget * m_rightWdiget;
};
#endif // WIDGET_H
